//Display function

#include "easybutterfly.h"

void messages(void){

	if(shwd == 0){

		//display the diferent options in the interface menu
		switch(lvl){
			case 0:
				LCD_TEXT("-- COUNTER --")
			break;
			case 15:
				LCD_TEXT("-- TEMP --")
			break;
			case 1:
				LCD_TEXT("-- CHANGE MODE --")
			break;
			case 2:
				LCD_TEXT("-- LIGHT CTRL --")
			break;
			case 3:
				LCD_TEXT("-- ALARM --")
			break;
			case 4:
				LCD_TEXT("-- NORMAL --")
			break;
			case 5:
				LCD_TEXT("-- ALARM ACTIVE --")
			break;
			case 6:
				LCD_TEXT("-- NORMAL ACTIVE --")
			break;
			case 7:
				//TEMPERATURE(temperatur)
				//LCD_D_NUMBER(temperatur,5,2)
				LCD_D_NUMBER(21,5,2)
			break;
			case 8:
				LCD_TEXT("- ON -")
			break;
			case 9:
				LCD_TEXT("- OFF -")
			break;
			case 16:
				LCD_TEXT("- AUTO INTENSITY -")
			break;
			case 10:
				LCD_TEXT("- SAVED -")
			break;
			case 11:
				LCD_TEXT("-- ENTER CODE --")
			break;
			case 12:
				LCD_TEXT("-- INCORRECT PATTERN --")
			break;
			case 13:
				LCD_TEXT("-- INTRUDER --")
			break;
			case 14:
				LCD_TEXT("-- DEACTIVATE --")
			break;
			case 17:
				LCD_NUMBER(counter)
			break;
			case 18:
				LCD_D_NUMBER(21,5,2)
			break;
		}
		shwd = 1;
	}

}

